#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.59])
AC_INIT([eGear], [0.1.0], [xijiaosdq@gmail.com])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_AUX_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror gnu])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_RANLIB

# Checks for libraries.
AC_CHECK_LIB([pthread], [pthread_create],
	     [], [AC_MSG_ERROR("-lpthread not found")])

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.
AC_CHECK_FUNCS([mkdir])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile auroral/Makefile auroral/src/Makefile \
		 async_server/Makefile async_server/src/Makefile \
		 async_client/Makefile async_client/src/Makefile \
		 ])

#AC_ARG_ENABLE(qt4, [  --enable-qt4         build qt4 frontend], [QT4="$enableval"])
# we always need qt4-frontend now
#QT4=yes
#AM_CONDITIONAL([USE_QT4], [test "$QT4" = yes])

BOOST_MIN_VERSION=1.35.0

AX_BOOST_BASE([$BOOST_MIN_VERSION])
AX_BOOST_IOSTREAMS([$BOOST_MIN_VERSION])
AX_BOOST_SYSTEM([$BOOST_MIN_VERSION])
AX_BOOST_THREAD([$BOOST_MIN_VERSION])
AX_BOOST_REGEX([$BOOST_MIN_VERSION])

AC_OUTPUT
